package com.sasis.model;
// Generated 2006-12-25 13:14:38 by Hibernate Tools 3.1.0.beta4



/**
 * @struts.form include-all="true" extends="BaseForm"
 * @hibernate.class
 *         table="runtimecondition"
 *     
 */

public class Runtimecondition extends com.sasis.model.BaseObject implements java.io.Serializable {


    // Fields    

    /**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private Integer id;
    private int runtimeId;
    private String condition;
    private String memo;


    // Constructors

    /** default constructor */
    public Runtimecondition() {
    }

	/** minimal constructor */
    public Runtimecondition(int runtimeId, String condition) {
        this.runtimeId = runtimeId;
        this.condition = condition;
    }
    
    /** full constructor */
    public Runtimecondition(int runtimeId, String condition, String memo) {
        this.runtimeId = runtimeId;
        this.condition = condition;
        this.memo = memo;
    }
    

   
    // Property accessors
    /**       
     *      *            @hibernate.id
     *             generator-class="native"
     *             type="int"
     *             column="ID"
     *         
     */

    public Integer getId() {
        return this.id;
    }
    
    public void setId(Integer id) {
        this.id = id;
    }
    /**       
     *      *            @hibernate.property
     *             column="RUNTIME_ID"
     *             length="10"
     *             not-null="true"
     *         
     */

    public int getRuntimeId() {
        return this.runtimeId;
    }
    
    public void setRuntimeId(int runtimeId) {
        this.runtimeId = runtimeId;
    }
    /**       
     *      *            @hibernate.property
     *             column="CONDITION"
     *             length="65535"
     *             not-null="true"
     *         
     */

    public String getCondition() {
        return this.condition;
    }
    
    public void setCondition(String condition) {
        this.condition = condition;
    }
    /**       
     *      *            @hibernate.property
     *             column="MEMO"
     *             length="500"
     *         
     */

    public String getMemo() {
        return this.memo;
    }
    
    public void setMemo(String memo) {
        this.memo = memo;
    }
   

    /**
     * toString
     * @return String
     */
     public String toString() {
	  StringBuffer buffer = new StringBuffer();

      buffer.append(getClass().getName()).append("@").append(Integer.toHexString(hashCode())).append(" [");
      buffer.append("runtimeId").append("='").append(getRuntimeId()).append("' ");			
      buffer.append("condition").append("='").append(getCondition()).append("' ");			
      buffer.append("memo").append("='").append(getMemo()).append("' ");			
      buffer.append("]");
      
      return buffer.toString();
     }


   public boolean equals(Object other) {
         if ( (this == other ) ) return true;
		 if ( (other == null ) ) return false;
		 if ( !(other instanceof Runtimecondition) ) return false;
		 Runtimecondition castOther = ( Runtimecondition ) other; 
         
		 return (this.getId()==castOther.getId())
 && (this.getRuntimeId()==castOther.getRuntimeId())
 && ( (this.getCondition()==castOther.getCondition()) || ( this.getCondition()!=null && castOther.getCondition()!=null && this.getCondition().equals(castOther.getCondition()) ) )
 && ( (this.getMemo()==castOther.getMemo()) || ( this.getMemo()!=null && castOther.getMemo()!=null && this.getMemo().equals(castOther.getMemo()) ) );
   }
   
   public int hashCode() {
         int result = 17;
         result = 37 * result + this.getId().intValue();
         result = 37 * result + this.getRuntimeId();
         result = 37 * result + ( getCondition() == null ? 0 : this.getCondition().hashCode() );
         result = 37 * result + ( getMemo() == null ? 0 : this.getMemo().hashCode() );
         return result;
   }   





}
